<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">

    <title></title>

    <script type="text/javascript" src="cordova.js"></script>
    <script type="text/javascript" src="js/webintent.js"></script>

    <script type="text/javascript">
        /* $(document).ready(function () {
         (function(){$('#test').bind("tap", {curdatetext: "test"}, datepicker.handler);})();
         });*/

        /*   $(function () {
         (function(){$('#test').bind("tap", {curdatetext: "test"}, datepicker.handler);})();
         });*/
        function openApk() {
            navigator.app.loadUrl("http://www.baidu.com");
        }

        function openAndroidActivity() {
            window.plugins.webintent.startActivity({
                        action: "android.intent.action.MAIN",
                        url: 'http://www.baidu.com'},
                    function () {
                    },
                    function () {
                        alert('Failed to open URL via Android Intent')
                    }
            );
        }
    </script>
</head>
<body>
<!--
<a onclick="openApk()" target="_blank">启动应用程序</a>-->

<input type="button" value="打开Android Activity" onclick="javascript:openAndroidActivity();">
</body>
</html>